cmake_minimum_required(VERSION 3.10)

set(CMAKE_C_COMPILER /home/deson/workspace/gnucompile/V851S3_YX/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-gcc)
set(CMAKE_CXX_COMPILER /home/deson/workspace/gnucompile/V851S3_YX/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-g++)

project(SharkCarPlay C CXX)

# 设置所有编译产物的统一输出目录
set(OUTPUT_DIR ${CMAKE_SOURCE_DIR}/outputs)

# 可执行文件输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})

# 动态库输出目录
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIR})

# 静态库输出目录
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIR})

set(CMAKE_SKIP_RPATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "")



# 添加子模块
add_subdirectory(carplay/ACPCP_R16E14)
add_subdirectory(carplay/iap2CPP)
add_subdirectory(carplay/aac)